﻿using System.Windows;
using Catel.Windows;

namespace Catel.Articles.Base.UI.Windows
{
    /// <summary>
    /// Interaction logic for ControlExampleWindow.xaml
    /// </summary>
    public partial class ControlExampleWindow : DataWindow
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ControlExampleWindow"/> class.
        /// </summary>
        public ControlExampleWindow()
            : base(DataWindowMode.Close)
        {
            InitializeComponent();
        }

        /// <summary>
        /// Loads a framework element.
        /// </summary>
        /// <param name="frameworkElement">The framework element.</param>
        public void LoadFrameworkElement(FrameworkElement frameworkElement)
        {
            contentGrid.Children.Clear();

            contentGrid.Children.Add(frameworkElement);
        }
    }
}
